package cn.keniykey.mc.viewlibrary.packet.api;

import org.bukkit.inventory.ItemStack;

public final class PacketWindowSetSlotDispatch extends AbWindowPacketDispatch {
	private final int slot;
	private final ItemStack item;

	public PacketWindowSetSlotDispatch(int windowid, int windowslot, ItemStack slotitem) {
		super(windowid);
		this.slot = windowslot;
		this.item = slotitem;
	}
	public PacketWindowSetSlotDispatch(int windowslot, ItemStack slotitem) {
		this.slot = windowslot;
		this.item = slotitem;
	}

	public int getSlot() {
		return this.slot;
	}

	public ItemStack getItemStack() {
		return this.item;
	}
}